/*
 * 
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc. Use is
 * subject to license terms.
 *  
 */

package cart;

import Bean.BeanClass;
import Bean.BeanStudent;

public class ShoppingCartItem {
	BeanClass item;
    BeanStudent student;
    int quantity;

    public ShoppingCartItem(BeanClass anItem,BeanStudent anStudent,int num) {
        item = anItem;
        quantity = num;
        student=anStudent;
    }

    public void incrementQuantity(int num) {
        quantity+=num;
    }

    public void decrementQuantity() {
        quantity--;
    }

    public BeanStudent getStudent() {
        return student;
    }

    public BeanClass getItem() {
        return item;
    }

    public int getQuantity() {
        return quantity;
    }
}
